
package carmadness.view;

import java.awt.Color;

import carmadness.model.RoadSegment;

/**
 * Rejtekhelyet grafikusan renderelő osztály.
 * 
 * @author arpi
 * @version 1.0
 * @created 10-Apr-2010 2:32:40 PM
 */
public class GraphicHideOutRenderer extends GraphicRSRenderer
{
	@Override
	protected void decorateRS( RoadSegment rs )
	{
		// "Kockás zászló"
		graphics.setColor( Color.DARK_GRAY );
		for ( int y = 0; y < 5; ++y )
			for ( int x = 0; x < 5; ++x )
				if ( ( x + y ) % 2 == 0 ) graphics.fillRect( x * 10 + 25, y * 10 + 25, 10, 10 );
	}
}
